<template>
  <div style="width:100%" class="tableContainer">
    <el-table :data="tableData" border style="width: 100%;height:100%">
      <el-table-column prop="name" label="终端类型"></el-table-column>
      <el-table-column prop="all" label="终端总数"></el-table-column>
      <el-table-column prop="online" label="在线数"></el-table-column>
      <el-table-column prop="rate" label="在线率"></el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          name: '虫情',
          all: '4',
          online: '1',
          rate: '25%'
        },
        {
          name: '孢子',
          all: '4',
          online: '1',
          rate: '25%'
        },
        {
          name: '气象',
          all: '4',
          online: '1',
          rate: '25%'
        }
      ]
    }
  }
}
</script>
<style scoped>
.tableContainer /deep/ .el-table,
.el-table__expanded-cell {
  background-color: transparent;
}
.tableContainer /deep/ .el-table tr {
  background-color: transparent !important;
}
.tableContainer /deep/ .el-table tr:hover td {
  background: transparent;
}
.tableContainer /deep/ .el-table--enable-row-transition .el-table__body td,
.el-table .cell {
  background-color: transparent;
  color: white;
}
.tableContainer /deep/ .el-table th.el-table__cell {
  background-color: transparent;
  color: white;
}
</style>
